<template>
  <component :is="props.is" v-if="typeof props.is === 'object'"></component>
  <i :class="props.is" v-else></i>
</template>

<script lang="ts" setup>
import type { Component } from "vue";

export interface Props {
  is?: Component | string;
}

const props = defineProps<Props>();
</script>
